import 'package:coins/constant/AppColors.dart';
import 'package:coins/maintab/CartFragment.dart';
import 'package:coins/maintab/CategoryFragment.dart';
import 'package:coins/maintab/MainPageWidget.dart';
import 'package:coins/maintab/homepage/HomePageFragment.dart';
import 'package:coins/maintab/mepage/MineFragment.dart';
import 'package:flutter/material.dart';

class MainApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      //直接影响home页面的tabLayout
        theme: new ThemeData(
            accentColor: AppColors.colorPrimary,
            accentColorBrightness: Brightness.light,
            brightness: Brightness.light,
            //状态栏背景
            primaryColor:AppColors.white
        ),
        home: MainPageWidget(), //启动MainPage
    );
  }
}
